import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

export default new Router({
  routes: [
    {
      name:'OnlineMessageHome',
      component: ()=> import('@/pages/OnlineMessageHome/index'),
      path:'/',
      redirect:"/OnlineMessage/index",
      children:[
        {
          name:'OnlineMessageItem', path:'/OnlineMessage/index',component: ()=> import("@/pages/OnlineMessage/index"), meta:{title:'在线估价'}
        },
        {
          name:'OnlineMessageList', path:'/OnlineMessage/list',component: ()=> import("@/pages/OnlineMessageList/index"), meta:{title:'估价列表'}
        },
        {
          name:'OnlineMessageDetail', path:'/OnlineMessage/detail',component: ()=> import('@/pages/OnlineMessageDetail/index'),meta:{title:'估价详情'}
        }
      ]
    },

  ]
})
